# price=eval(input("请输入图书价格："))
# books=int(input("请输入购买册数："))
# flag=int(input("有会员卡，输入1，否则输入0："))
# if flag==1:
#     if books>=5:
#         payment=price*0.75*books
#     else:
#         payment=price*0.85*books
# else:
#     if books>=5:
#         payment=price*0.85*books
#     else:
#         payment=price*0.95*books
# print("您购买了价格{}元的图书{}册，付款{}元".format(price,books,payment))

# 计算圆周率
# i = 1  #  产生     1  3    5   7    9    这样一个序列
# j = 1  #  计算得到 1 1/3  1/5  1/7  1/9 ...
# s = 1 #           1  -1   1   -1   1   
# pi = 0.0 # 计算   1-1/3 + 1/5 -1/7
# while j>1e-6:           #即 j > 0.000001
#     # print(i,end=" ")                         
#     j = 1/i
#     print(j,end=" ")
#     pi = pi + j * s
#     s = -s
#     i = i+2
# pi = pi * 4
# print(pi)


# 比赛
# for a in "xyz":
#     if a!="x":  # a 不与 x 比
#         for b in "xyz":
#             if a != b:
#                 for c in "xyz":
#                     if c!= a and c!=b and c!="x" and c!="y":
#                         print(f"a={a},b={b},c={c}")   

# 猜数字
# 导入随机数的库
import random
target = random.randint(1,100) # [1,1000]
print(target)

i = 0
while True:
    guess = int(input("请输入一个数字:"))
    if guess>target:
        print("大了")
    elif guess<target:
        print("小了")
    else:
        print("猜对了")
        break

## 练习1 
x = int(input("请输入第1个数字"))
y = int(input("请输入第2个数字"))
z = int(input("请输入第3个数字"))
if x>y:
    x,y = y,x
if x>z:
    x,z = z,x
if y>z:
    y,z = z,x
print(x,y,z)

